﻿#include "handshakeandunlockwidget.h"

QHandShakeAndunLockWidget::QHandShakeAndunLockWidget(QWidget *parent) : QWidget(parent)
{
    IniUI();

}

/**
* @brief
*
**/
void QHandShakeAndunLockWidget::IniUI()
{
    _pUnlockwidget = new QUnLockWidget(this);
    _pAziHandShakeWidget = new QHandShakeWidget(0x0,"方位轴",this);
    _pPitchHandShakeWidget = new QHandShakeWidget(0x01,"俯仰轴",this);

    QUIQss::setWidgetStyleSheet(_pUnlockwidget);
    QUIQss::setWidgetStyleSheet(_pAziHandShakeWidget);
    QUIQss::setWidgetStyleSheet(_pPitchHandShakeWidget);

    QGridLayout* playout = new QGridLayout(this);
    playout->addWidget(_pUnlockwidget,0,0,1,1);
    playout->addWidget(_pAziHandShakeWidget,1,0,1,1);
    playout->addWidget(_pPitchHandShakeWidget,1,1,1,1);

    playout->addItem(new QSpacerItem(10,500,QSizePolicy::Minimum,QSizePolicy::Maximum),3,0,1,1);


    playout->setColumnStretch(0,1);
    playout->setColumnStretch(1,1);
    playout->setColumnStretch(2,1);

}
